<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="vue.js"></script>
    <script type="text/javascript" data-main="main" src="require.js"></script>
</head>
<body>
<div id="example">
    <my-component :message="message"></my-component>
</div>
<template id="zujian">
    <div>{{message}}</div>
</template>
<script type="text/javascript">
    var data = { counter: 0 }
    Vue.component('my-component', {
        template: '#zujian',
        props:['message'],
    })
    new Vue({
        el: '#example',
        data: {
            message:{
                hello:'nihao',
            }
        }
    })
</script>
</body>
</html>